package com.sys.basics.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import com.sys.basics.entity.SysUserOrgLk;
import com.sys.basics.dao.SysUserOrgLkDao;
import com.sys.basics.service.SysUserOrgLkService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author: ares
 * @date: 2021-10-09
 * @description: 用户组织关联表 服务实现类
 */
@Slf4j
@Service
public class SysUserOrgLkServiceImpl extends ServiceImpl<SysUserOrgLkDao, SysUserOrgLk> implements SysUserOrgLkService {
    @Autowired
	SysUserOrgLkDao sysUserOrgLkDao;


    @Override
    public int batchCreate(Long userId, List<Long> orgIds) {
        return sysUserOrgLkDao.batchCreate(userId, orgIds);
    }

    @Override
    public int batchRemove(Long userId, List<Long> orgIds) {
        return sysUserOrgLkDao.batchRemove(userId, orgIds);
    }
}
